﻿using PMP.Core.Enums;
using SqlSugar;

namespace PMP.Core.Entities;

/// <summary>
/// 项目提级记录
/// </summary>
public class TbProjectUpgrade : BaseEntity
{
    /// <summary>
    /// 项目id
    /// </summary>
    public int ProjectId { get; set; }
    /// <summary>
    /// 操作者id
    /// </summary>
    public int OperatorId { get; set; }
    /// <summary>
    /// 操作者姓名
    /// </summary>
    public string OperatorName { get; set; } = string.Empty;
    
    /// <summary>
    /// 提级原因
    /// </summary>
    [SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string Reason { get; set; } = string.Empty;
    /// <summary>
    /// 目标等级
    /// </summary>
    public EnumProjectLevel UpgradeLevel { get; set; }
    /// <summary>
    /// 是否同意
    /// </summary>
    public bool IsAgree { get; set; }

    /// <summary>
    /// 是否是发起人
    /// </summary>
    public bool IsInitiator { get; set; } = false;
}